home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / print / proff.zip / DEFS.H < prev    next >
C/C++ Source or Header  |  1988-02-12  |  2KB  |  91 lines

  1. /*
  2.  * defs.h
  3.  *
  4.  * #define rainbow    - rainbow CP/M-86 version
  5.  * #define vms        - vms version (predefined by VAX11C compiler)
  6.  * #define unix        - unix version
  7.  */
  8.  
  9. /*
  10.  *  Synonyms for ASCII control characters
  11.  *
  12.  */
  13.  
  14. #define    BACKSPACE    8
  15. #define    BEL        7
  16. #define BELL        7
  17. #define    BLANK        32
  18. #define    CARRIAGE_RETURN    13
  19. #define    NEWLINE        10
  20. #define    RUBOUT        127
  21. #define    TAB        9
  22.  
  23. /*
  24.  * misc. definitions
  25.  *
  26.  */
  27.  
  28. #define    EOS        0
  29. #define    HUGE        30000
  30. #define    NO        0
  31. #define    OK        0
  32. #define    YES        1
  33. #define FALSE        0
  34. #define TRUE        1
  35. #define    FILENAMESIZE    50
  36. #define    MAXCHARS    20
  37. #define MAXLINE        256
  38. #define MAXTOK        80
  39. #define ARB        MAXLINE
  40.  
  41. #define    MAXCARD        MAXLINE-1
  42. #define    MAXNAME        FILENAMESIZE
  43.  
  44. #define    NCHARS        33
  45. #define MAXOFILES    12
  46.  
  47. #define    ARGFLAG    '$' 
  48. #define    INSIZE    MAXLINE 
  49. #define    MAXOUT    2*MAXLINE 
  50. #define    MAXDEF    200 
  51. #define    NFILES    MAXOFILES-4
  52. #define    PAGENUM        '#' 
  53. #define    CURRENTDATE    '%' 
  54. #define ESCAPE        '@'
  55. #define VESCAPE        '$'
  56. #define    PAGEJECT    12          /* 12 is ASCII formfeed (control-L) */
  57. #define    PAGEWIDTH    65 
  58. #define    PAGELEN        62 
  59. #define    BUFSIZE        512            /* push back buffer */
  60. /*
  61.  * lexical analyser values
  62.  *
  63.  * include lexical analyser return constants
  64.  * generated by ltb.
  65.  *
  66.  */
  67. #include "lextab.d"        /* expended format & roff & runoff */
  68.  
  69. #define    UNKNOWN    999
  70. #define MACRO    0
  71. #define NEGATED -1
  72. #define    LEFT    1 
  73. #define    CENTER    2 
  74. #define    RIGHT    3
  75.  
  76. /*
  77.  * structure definition for contents linked list
  78.  *
  79.  */
  80.  
  81. struct clist {        /* list struct for contents  */
  82.     char level;
  83.     char *str;
  84.     int  page;
  85.     struct clist *nextc;
  86. };
  87.  
  88. #undef putchar
  89. #define putchar(c) putc((c),poutput);
  90.  
  91.